package com.friend.base.controller.base;


import cn.hutool.core.util.ObjectUtil;
import com.friend.base.service.base.MemberService;
import com.friend.common.model.BaseController;
import com.friend.common.model.Result;
import com.friend.entity.entity.base.Member;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author friend
 * @since 2019-10-11
 */
@Api(tags = {"会员表控制类"})
@Slf4j
@RestController
@RequestMapping(value = "/member", produces = {MediaType.APPLICATION_JSON_UTF8_VALUE})
public class MemberController extends BaseController {

    @Autowired
    private MemberService memberService;

    @GetMapping("/ifLogin")
    @ApiOperation(value = "判断用户是否登录", notes = "未登录返回固定用户做测试", httpMethod = "GET")
    public Result ifLogin(){
        Member member = memberService.getById(1000001);
        if (ObjectUtil.isNull(member)){
            return this.createFailedResult("默认用户查询失败");
        }
        return this.createSuccessResult(member);
    }

    @PostMapping("/saveHonors")
    @ApiOperation(value = "保存用户爱好", notes = "保存用户爱好", httpMethod = "POST")
    public Result saveHonors(@RequestBody Member member){
        try {
            boolean flag = memberService.updateById(member);
            if (!flag){
                return this.createFailedResult("保存用户爱好失败");
            }
            member = memberService.getById(member.getId());
            return this.createSuccessResult(member);
        }catch (Exception e){
            e.printStackTrace();
            return this.createFailedResult("保存用户爱好失败");
        }
    }

    @GetMapping("/getMap")
    @ApiOperation(value = "判断用户是否登录", notes = "未登录返回固定用户做测试", httpMethod = "GET")
    public String getMap(){
        return "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"adcode\":110101,\"name\":\"东城区\",\"center\":[116.418757,39.917544],\"centroid\":[116.416792,39.912964],\"childrenNum\":0,\"level\":\"district\",\"subFeatureIndex\":0,\"acroutes\":[100000,110000],\"parent\":{\"adcode\":110000}},\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[[[116.443452,39.872222],[116.421369,39.872791],[116.41361,39.870513],[116.41658,39.866868],[116.413485,39.860081],[116.3955,39.858616]]]]}}]}";
    }

    @GetMapping("/getData")
    @ApiOperation(value = "判断用户是否登录", notes = "未登录返回固定用户做测试", httpMethod = "GET")
    public String getData(){
        return "{\n" +
                "    \"success\": true,\n" +
                "    \"data\": {\n" +
                "        \"Column\": {\n" +
                "            \"categories\": [\n" +
                "                \"2012\",\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"成交量1\",\n" +
                "                    \"data\": [\n" +
                "                        15,\n" +
                "                        {\n" +
                "                            \"value\": 20,\n" +
                "                            \"color\": \"#f04864\"\n" +
                "                        },\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        34\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量2\",\n" +
                "                    \"data\": [\n" +
                "                        30,\n" +
                "                        {\n" +
                "                            \"value\": 40,\n" +
                "                            \"color\": \"#facc14\"\n" +
                "                        },\n" +
                "                        25,\n" +
                "                        14,\n" +
                "                        34,\n" +
                "                        18\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"ColumnB\": {\n" +
                "            \"categories\": [\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\",\n" +
                "                \"2018\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"新成交量3\",\n" +
                "                    \"data\": [\n" +
                "                        35,\n" +
                "                        36,\n" +
                "                        31,\n" +
                "                        33,\n" +
                "                        13,\n" +
                "                        34\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"新成交量4\",\n" +
                "                    \"data\": [\n" +
                "                        18,\n" +
                "                        27,\n" +
                "                        21,\n" +
                "                        24,\n" +
                "                        6,\n" +
                "                        28\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"ColumnMeter\": {\n" +
                "            \"categories\": [\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\",\n" +
                "                \"2018\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"目标值\",\n" +
                "                    \"data\": [\n" +
                "                        35,\n" +
                "                        36,\n" +
                "                        31,\n" +
                "                        33,\n" +
                "                        13,\n" +
                "                        34\n" +
                "                    ],\n" +
                "                    \"color\": \"#2fc25b\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"完成量\",\n" +
                "                    \"data\": [\n" +
                "                        18,\n" +
                "                        27,\n" +
                "                        21,\n" +
                "                        24,\n" +
                "                        6,\n" +
                "                        28\n" +
                "                    ],\n" +
                "                    \"color\": \"#1890ff\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"ColumnStack\": {\n" +
                "            \"categories\": [\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\",\n" +
                "                \"2018\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"新成交量3\",\n" +
                "                    \"data\": [\n" +
                "                        35,\n" +
                "                        36,\n" +
                "                        31,\n" +
                "                        33,\n" +
                "                        13,\n" +
                "                        34\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"新成交量4\",\n" +
                "                    \"data\": [\n" +
                "                        18,\n" +
                "                        27,\n" +
                "                        21,\n" +
                "                        24,\n" +
                "                        6,\n" +
                "                        28\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"新成交量5\",\n" +
                "                    \"data\": [\n" +
                "                        18,\n" +
                "                        27,\n" +
                "                        21,\n" +
                "                        24,\n" +
                "                        6,\n" +
                "                        28\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Mix\": {\n" +
                "            \"categories\": [\n" +
                "                \"2012\",\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"曲面\",\n" +
                "                    \"data\": [\n" +
                "                        70,\n" +
                "                        50,\n" +
                "                        85,\n" +
                "                        130,\n" +
                "                        64,\n" +
                "                        88\n" +
                "                    ],\n" +
                "                    \"type\": \"area\",\n" +
                "                    \"style\": \"curve\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"柱1\",\n" +
                "                    \"data\": [\n" +
                "                        40,\n" +
                "                        30,\n" +
                "                        55,\n" +
                "                        110,\n" +
                "                        24,\n" +
                "                        58\n" +
                "                    ],\n" +
                "                    \"type\": \"column\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"柱2\",\n" +
                "                    \"data\": [\n" +
                "                        50,\n" +
                "                        20,\n" +
                "                        75,\n" +
                "                        60,\n" +
                "                        34,\n" +
                "                        38\n" +
                "                    ],\n" +
                "                    \"type\": \"column\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"曲线\",\n" +
                "                    \"data\": [\n" +
                "                        70,\n" +
                "                        50,\n" +
                "                        85,\n" +
                "                        130,\n" +
                "                        64,\n" +
                "                        88\n" +
                "                    ],\n" +
                "                    \"type\": \"line\",\n" +
                "                    \"style\": \"curve\",\n" +
                "                    \"color\": \"#1890ff\",\n" +
                "                    \"disableLegend\": true\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"折线\",\n" +
                "                    \"data\": [\n" +
                "                        120,\n" +
                "                        140,\n" +
                "                        105,\n" +
                "                        170,\n" +
                "                        95,\n" +
                "                        160\n" +
                "                    ],\n" +
                "                    \"type\": \"line\",\n" +
                "                    \"color\": \"#2fc25b\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"点\",\n" +
                "                    \"data\": [\n" +
                "                        100,\n" +
                "                        80,\n" +
                "                        125,\n" +
                "                        150,\n" +
                "                        112,\n" +
                "                        132\n" +
                "                    ],\n" +
                "                    \"type\": \"point\",\n" +
                "                    \"color\": \"#f04864\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"LineA\": {\n" +
                "            \"categories\": [\n" +
                "                \"2012\",\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"成交量A\",\n" +
                "                    \"data\": [\n" +
                "                        35,\n" +
                "                        8,\n" +
                "                        25,\n" +
                "                        37,\n" +
                "                        4,\n" +
                "                        20\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量B\",\n" +
                "                    \"data\": [\n" +
                "                        70,\n" +
                "                        40,\n" +
                "                        65,\n" +
                "                        100,\n" +
                "                        44,\n" +
                "                        68\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量C\",\n" +
                "                    \"data\": [\n" +
                "                        100,\n" +
                "                        80,\n" +
                "                        95,\n" +
                "                        150,\n" +
                "                        112,\n" +
                "                        132\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"LineB\": {\n" +
                "            \"categories\": [\n" +
                "                \"2012\",\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"成交量A\",\n" +
                "                    \"data\": [\n" +
                "                        35,\n" +
                "                        20,\n" +
                "                        25,\n" +
                "                        37,\n" +
                "                        4,\n" +
                "                        20\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量B\",\n" +
                "                    \"data\": [\n" +
                "                        70,\n" +
                "                        40,\n" +
                "                        65,\n" +
                "                        100,\n" +
                "                        44,\n" +
                "                        68\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量C\",\n" +
                "                    \"data\": [\n" +
                "                        100,\n" +
                "                        80,\n" +
                "                        95,\n" +
                "                        150,\n" +
                "                        112,\n" +
                "                        132\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Area\": {\n" +
                "            \"categories\": [\n" +
                "                \"2012\",\n" +
                "                \"2013\",\n" +
                "                \"2014\",\n" +
                "                \"2015\",\n" +
                "                \"2016\",\n" +
                "                \"2017\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"成交量A\",\n" +
                "                    \"data\": [\n" +
                "                        100,\n" +
                "                        80,\n" +
                "                        95,\n" +
                "                        150,\n" +
                "                        112,\n" +
                "                        132\n" +
                "                    ],\n" +
                "                    \"color\": \"#facc14\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量B\",\n" +
                "                    \"data\": [\n" +
                "                        70,\n" +
                "                        40,\n" +
                "                        65,\n" +
                "                        100,\n" +
                "                        44,\n" +
                "                        68\n" +
                "                    ],\n" +
                "                    \"color\": \"#2fc25b\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量C\",\n" +
                "                    \"data\": [\n" +
                "                        35,\n" +
                "                        20,\n" +
                "                        25,\n" +
                "                        37,\n" +
                "                        4,\n" +
                "                        20\n" +
                "                    ],\n" +
                "                    \"color\": \"#1890ff\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Pie\": {\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"一班\",\n" +
                "                    \"data\": 50\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"二班\",\n" +
                "                    \"data\": 30\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"三班\",\n" +
                "                    \"data\": 20\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"四班\",\n" +
                "                    \"data\": 18\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"五班\",\n" +
                "                    \"data\": 8\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Ring\": {\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"一班\",\n" +
                "                    \"data\": 50\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"二班\",\n" +
                "                    \"data\": 30\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"三班\",\n" +
                "                    \"data\": 20\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"四班\",\n" +
                "                    \"data\": 18\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"五班\",\n" +
                "                    \"data\": 8\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Radar\": {\n" +
                "            \"categories\": [\n" +
                "                \"维度1\",\n" +
                "                \"维度2\",\n" +
                "                \"维度3\",\n" +
                "                \"维度4\",\n" +
                "                \"维度5\",\n" +
                "                \"维度6\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"成交量1\",\n" +
                "                    \"data\": [\n" +
                "                        90,\n" +
                "                        110,\n" +
                "                        165,\n" +
                "                        195,\n" +
                "                        187,\n" +
                "                        172\n" +
                "                    ]\n" +
                "                },\n" +
                "                {\n" +
                "                    \"name\": \"成交量2\",\n" +
                "                    \"data\": [\n" +
                "                        190,\n" +
                "                        210,\n" +
                "                        105,\n" +
                "                        35,\n" +
                "                        27,\n" +
                "                        102\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Arcbar1\": {\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"正确率\",\n" +
                "                    \"data\": 0.29,\n" +
                "                    \"color\": \"#2fc25b\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Arcbar2\": {\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"错误率\",\n" +
                "                    \"data\": 0.65,\n" +
                "                    \"color\": \"#f04864\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Arcbar3\": {\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"完成率\",\n" +
                "                    \"data\": 0.85,\n" +
                "                    \"color\": \"#1890ff\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Gauge\": {\n" +
                "            \"categories\": [\n" +
                "                {\n" +
                "                    \"value\": 0.2,\n" +
                "                    \"color\": \"#1890ff\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"value\": 0.8,\n" +
                "                    \"color\": \"#2fc25b\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"value\": 1,\n" +
                "                    \"color\": \"#f04864\"\n" +
                "                }\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"完成率\",\n" +
                "                    \"data\": 0.66\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"Candle\": {\n" +
                "            \"categories\": [\n" +
                "                \"2013/1/24\",\n" +
                "                \"2013/1/25\",\n" +
                "                \"2013/1/28\",\n" +
                "                \"2013/1/29\",\n" +
                "                \"2013/1/30\",\n" +
                "                \"2013/1/31\",\n" +
                "                \"2013/2/1\",\n" +
                "                \"2013/2/4\",\n" +
                "                \"2013/2/5\",\n" +
                "                \"2013/2/6\",\n" +
                "                \"2013/2/7\",\n" +
                "                \"2013/2/8\",\n" +
                "                \"2013/2/18\",\n" +
                "                \"2013/2/19\",\n" +
                "                \"2013/2/20\",\n" +
                "                \"2013/2/21\",\n" +
                "                \"2013/2/22\",\n" +
                "                \"2013/2/25\",\n" +
                "                \"2013/2/26\",\n" +
                "                \"2013/2/27\",\n" +
                "                \"2013/2/28\",\n" +
                "                \"2013/3/1\",\n" +
                "                \"2013/3/4\",\n" +
                "                \"2013/3/5\",\n" +
                "                \"2013/3/6\",\n" +
                "                \"2013/3/7\",\n" +
                "                \"2013/3/8\",\n" +
                "                \"2013/3/11\",\n" +
                "                \"2013/3/12\",\n" +
                "                \"2013/3/13\",\n" +
                "                \"2013/3/14\",\n" +
                "                \"2013/3/15\",\n" +
                "                \"2013/3/18\",\n" +
                "                \"2013/3/19\",\n" +
                "                \"2013/3/20\",\n" +
                "                \"2013/3/21\",\n" +
                "                \"2013/3/22\",\n" +
                "                \"2013/3/25\",\n" +
                "                \"2013/3/26\",\n" +
                "                \"2013/3/27\",\n" +
                "                \"2013/3/28\",\n" +
                "                \"2013/3/29\",\n" +
                "                \"2013/4/1\",\n" +
                "                \"2013/4/2\",\n" +
                "                \"2013/4/3\",\n" +
                "                \"2013/4/8\",\n" +
                "                \"2013/4/9\",\n" +
                "                \"2013/4/10\",\n" +
                "                \"2013/4/11\",\n" +
                "                \"2013/4/12\",\n" +
                "                \"2013/4/15\",\n" +
                "                \"2013/4/16\",\n" +
                "                \"2013/4/17\",\n" +
                "                \"2013/4/18\",\n" +
                "                \"2013/4/19\",\n" +
                "                \"2013/4/22\",\n" +
                "                \"2013/4/23\",\n" +
                "                \"2013/4/24\",\n" +
                "                \"2013/4/25\",\n" +
                "                \"2013/4/26\",\n" +
                "                \"2013/5/2\",\n" +
                "                \"2013/5/3\",\n" +
                "                \"2013/5/6\",\n" +
                "                \"2013/5/7\",\n" +
                "                \"2013/5/8\",\n" +
                "                \"2013/5/9\",\n" +
                "                \"2013/5/10\",\n" +
                "                \"2013/5/13\",\n" +
                "                \"2013/5/14\",\n" +
                "                \"2013/5/15\",\n" +
                "                \"2013/5/16\",\n" +
                "                \"2013/5/17\",\n" +
                "                \"2013/5/20\",\n" +
                "                \"2013/5/21\",\n" +
                "                \"2013/5/22\",\n" +
                "                \"2013/5/23\",\n" +
                "                \"2013/5/24\",\n" +
                "                \"2013/5/27\",\n" +
                "                \"2013/5/28\",\n" +
                "                \"2013/5/29\",\n" +
                "                \"2013/5/30\",\n" +
                "                \"2013/5/31\",\n" +
                "                \"2013/6/3\",\n" +
                "                \"2013/6/4\",\n" +
                "                \"2013/6/5\",\n" +
                "                \"2013/6/6\",\n" +
                "                \"2013/6/7\",\n" +
                "                \"2013/6/13\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"上证指数\",\n" +
                "                    \"data\": [\n" +
                "                        [\n" +
                "                            2320.26,\n" +
                "                            2302.6,\n" +
                "                            2287.3,\n" +
                "                            2362.94\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2300,\n" +
                "                            2291.3,\n" +
                "                            2288.26,\n" +
                "                            2308.38\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2295.35,\n" +
                "                            2346.5,\n" +
                "                            2295.35,\n" +
                "                            2346.92\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2347.22,\n" +
                "                            2358.98,\n" +
                "                            2337.35,\n" +
                "                            2363.8\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2360.75,\n" +
                "                            2382.48,\n" +
                "                            2347.89,\n" +
                "                            2383.76\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2383.43,\n" +
                "                            2385.42,\n" +
                "                            2371.23,\n" +
                "                            2391.82\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2377.41,\n" +
                "                            2419.02,\n" +
                "                            2369.57,\n" +
                "                            2421.15\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2425.92,\n" +
                "                            2428.15,\n" +
                "                            2417.58,\n" +
                "                            2440.38\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2411,\n" +
                "                            2433.13,\n" +
                "                            2403.3,\n" +
                "                            2437.42\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2432.68,\n" +
                "                            2434.48,\n" +
                "                            2427.7,\n" +
                "                            2441.73\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2430.69,\n" +
                "                            2418.53,\n" +
                "                            2394.22,\n" +
                "                            2433.89\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2416.62,\n" +
                "                            2432.4,\n" +
                "                            2414.4,\n" +
                "                            2443.03\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2441.91,\n" +
                "                            2421.56,\n" +
                "                            2415.43,\n" +
                "                            2444.8\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2420.26,\n" +
                "                            2382.91,\n" +
                "                            2373.53,\n" +
                "                            2427.07\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2383.49,\n" +
                "                            2397.18,\n" +
                "                            2370.61,\n" +
                "                            2397.94\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2378.82,\n" +
                "                            2325.95,\n" +
                "                            2309.17,\n" +
                "                            2378.82\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2322.94,\n" +
                "                            2314.16,\n" +
                "                            2308.76,\n" +
                "                            2330.88\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2320.62,\n" +
                "                            2325.82,\n" +
                "                            2315.01,\n" +
                "                            2338.78\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2313.74,\n" +
                "                            2293.34,\n" +
                "                            2289.89,\n" +
                "                            2340.71\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2297.77,\n" +
                "                            2313.22,\n" +
                "                            2292.03,\n" +
                "                            2324.63\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2322.32,\n" +
                "                            2365.59,\n" +
                "                            2308.92,\n" +
                "                            2366.16\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2364.54,\n" +
                "                            2359.51,\n" +
                "                            2330.86,\n" +
                "                            2369.65\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2332.08,\n" +
                "                            2273.4,\n" +
                "                            2259.25,\n" +
                "                            2333.54\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2274.81,\n" +
                "                            2326.31,\n" +
                "                            2270.1,\n" +
                "                            2328.14\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2333.61,\n" +
                "                            2347.18,\n" +
                "                            2321.6,\n" +
                "                            2351.44\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2340.44,\n" +
                "                            2324.29,\n" +
                "                            2304.27,\n" +
                "                            2352.02\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2326.42,\n" +
                "                            2318.61,\n" +
                "                            2314.59,\n" +
                "                            2333.67\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2314.68,\n" +
                "                            2310.59,\n" +
                "                            2296.58,\n" +
                "                            2320.96\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2309.16,\n" +
                "                            2286.6,\n" +
                "                            2264.83,\n" +
                "                            2333.29\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2282.17,\n" +
                "                            2263.97,\n" +
                "                            2253.25,\n" +
                "                            2286.33\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2255.77,\n" +
                "                            2270.28,\n" +
                "                            2253.31,\n" +
                "                            2276.22\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2269.31,\n" +
                "                            2278.4,\n" +
                "                            2250,\n" +
                "                            2312.08\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2267.29,\n" +
                "                            2240.02,\n" +
                "                            2239.21,\n" +
                "                            2276.05\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2244.26,\n" +
                "                            2257.43,\n" +
                "                            2232.02,\n" +
                "                            2261.31\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2257.74,\n" +
                "                            2317.37,\n" +
                "                            2257.42,\n" +
                "                            2317.86\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2318.21,\n" +
                "                            2324.24,\n" +
                "                            2311.6,\n" +
                "                            2330.81\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2321.4,\n" +
                "                            2328.28,\n" +
                "                            2314.97,\n" +
                "                            2332\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2334.74,\n" +
                "                            2326.72,\n" +
                "                            2319.91,\n" +
                "                            2344.89\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2318.58,\n" +
                "                            2297.67,\n" +
                "                            2281.12,\n" +
                "                            2319.99\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2299.38,\n" +
                "                            2301.26,\n" +
                "                            2289,\n" +
                "                            2323.48\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2273.55,\n" +
                "                            2236.3,\n" +
                "                            2232.91,\n" +
                "                            2273.55\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2238.49,\n" +
                "                            2236.62,\n" +
                "                            2228.81,\n" +
                "                            2246.87\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2229.46,\n" +
                "                            2234.4,\n" +
                "                            2227.31,\n" +
                "                            2243.95\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2234.9,\n" +
                "                            2227.74,\n" +
                "                            2220.44,\n" +
                "                            2253.42\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2232.69,\n" +
                "                            2225.29,\n" +
                "                            2217.25,\n" +
                "                            2241.34\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2196.24,\n" +
                "                            2211.59,\n" +
                "                            2180.67,\n" +
                "                            2212.59\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2215.47,\n" +
                "                            2225.77,\n" +
                "                            2215.47,\n" +
                "                            2234.73\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2224.93,\n" +
                "                            2226.13,\n" +
                "                            2212.56,\n" +
                "                            2233.04\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2236.98,\n" +
                "                            2219.55,\n" +
                "                            2217.26,\n" +
                "                            2242.48\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2218.09,\n" +
                "                            2206.78,\n" +
                "                            2204.44,\n" +
                "                            2226.26\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2199.91,\n" +
                "                            2181.94,\n" +
                "                            2177.39,\n" +
                "                            2204.99\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2169.63,\n" +
                "                            2194.85,\n" +
                "                            2165.78,\n" +
                "                            2196.43\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2195.03,\n" +
                "                            2193.8,\n" +
                "                            2178.47,\n" +
                "                            2197.51\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2181.82,\n" +
                "                            2197.6,\n" +
                "                            2175.44,\n" +
                "                            2206.03\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2201.12,\n" +
                "                            2244.64,\n" +
                "                            2200.58,\n" +
                "                            2250.11\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2236.4,\n" +
                "                            2242.17,\n" +
                "                            2232.26,\n" +
                "                            2245.12\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2242.62,\n" +
                "                            2184.54,\n" +
                "                            2182.81,\n" +
                "                            2242.62\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2187.35,\n" +
                "                            2218.32,\n" +
                "                            2184.11,\n" +
                "                            2226.12\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2213.19,\n" +
                "                            2199.31,\n" +
                "                            2191.85,\n" +
                "                            2224.63\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2203.89,\n" +
                "                            2177.91,\n" +
                "                            2173.86,\n" +
                "                            2210.58\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2170.78,\n" +
                "                            2174.12,\n" +
                "                            2161.14,\n" +
                "                            2179.65\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2179.05,\n" +
                "                            2205.5,\n" +
                "                            2179.05,\n" +
                "                            2222.81\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2212.5,\n" +
                "                            2231.17,\n" +
                "                            2212.5,\n" +
                "                            2236.07\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2227.86,\n" +
                "                            2235.57,\n" +
                "                            2219.44,\n" +
                "                            2240.26\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2242.39,\n" +
                "                            2246.3,\n" +
                "                            2235.42,\n" +
                "                            2255.21\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2246.96,\n" +
                "                            2232.97,\n" +
                "                            2221.38,\n" +
                "                            2247.86\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2228.82,\n" +
                "                            2246.83,\n" +
                "                            2225.81,\n" +
                "                            2247.67\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2247.68,\n" +
                "                            2241.92,\n" +
                "                            2231.36,\n" +
                "                            2250.85\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2238.9,\n" +
                "                            2217.01,\n" +
                "                            2205.87,\n" +
                "                            2239.93\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2217.09,\n" +
                "                            2224.8,\n" +
                "                            2213.58,\n" +
                "                            2225.19\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2221.34,\n" +
                "                            2251.81,\n" +
                "                            2210.77,\n" +
                "                            2252.87\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2249.81,\n" +
                "                            2282.87,\n" +
                "                            2248.41,\n" +
                "                            2288.09\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2286.33,\n" +
                "                            2299.99,\n" +
                "                            2281.9,\n" +
                "                            2309.39\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2297.11,\n" +
                "                            2305.11,\n" +
                "                            2290.12,\n" +
                "                            2305.3\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2303.75,\n" +
                "                            2302.4,\n" +
                "                            2292.43,\n" +
                "                            2314.18\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2293.81,\n" +
                "                            2275.67,\n" +
                "                            2274.1,\n" +
                "                            2304.95\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2281.45,\n" +
                "                            2288.53,\n" +
                "                            2270.25,\n" +
                "                            2292.59\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2286.66,\n" +
                "                            2293.08,\n" +
                "                            2283.94,\n" +
                "                            2301.7\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2293.4,\n" +
                "                            2321.32,\n" +
                "                            2281.47,\n" +
                "                            2322.1\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2323.54,\n" +
                "                            2324.02,\n" +
                "                            2321.17,\n" +
                "                            2334.33\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2316.25,\n" +
                "                            2317.75,\n" +
                "                            2310.49,\n" +
                "                            2325.72\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2320.74,\n" +
                "                            2300.59,\n" +
                "                            2299.37,\n" +
                "                            2325.53\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2300.21,\n" +
                "                            2299.25,\n" +
                "                            2294.11,\n" +
                "                            2313.43\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2297.1,\n" +
                "                            2272.42,\n" +
                "                            2264.76,\n" +
                "                            2297.1\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2270.71,\n" +
                "                            2270.93,\n" +
                "                            2260.87,\n" +
                "                            2276.86\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2264.43,\n" +
                "                            2242.11,\n" +
                "                            2240.07,\n" +
                "                            2266.69\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2242.26,\n" +
                "                            2210.9,\n" +
                "                            2205.07,\n" +
                "                            2250.63\n" +
                "                        ],\n" +
                "                        [\n" +
                "                            2190.1,\n" +
                "                            2148.35,\n" +
                "                            2126.22,\n" +
                "                            2190.1\n" +
                "                        ]\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"CandleColumn\": {\n" +
                "            \"categories\": [\n" +
                "                \"2013/1/24\",\n" +
                "                \"2013/1/25\",\n" +
                "                \"2013/1/28\",\n" +
                "                \"2013/1/29\",\n" +
                "                \"2013/1/30\",\n" +
                "                \"2013/1/31\",\n" +
                "                \"2013/2/1\",\n" +
                "                \"2013/2/4\",\n" +
                "                \"2013/2/5\",\n" +
                "                \"2013/2/6\",\n" +
                "                \"2013/2/7\",\n" +
                "                \"2013/2/8\",\n" +
                "                \"2013/2/18\",\n" +
                "                \"2013/2/19\",\n" +
                "                \"2013/2/20\",\n" +
                "                \"2013/2/21\",\n" +
                "                \"2013/2/22\",\n" +
                "                \"2013/2/25\",\n" +
                "                \"2013/2/26\",\n" +
                "                \"2013/2/27\",\n" +
                "                \"2013/2/28\",\n" +
                "                \"2013/3/1\",\n" +
                "                \"2013/3/4\",\n" +
                "                \"2013/3/5\",\n" +
                "                \"2013/3/6\",\n" +
                "                \"2013/3/7\",\n" +
                "                \"2013/3/8\",\n" +
                "                \"2013/3/11\",\n" +
                "                \"2013/3/12\",\n" +
                "                \"2013/3/13\",\n" +
                "                \"2013/3/14\",\n" +
                "                \"2013/3/15\",\n" +
                "                \"2013/3/18\",\n" +
                "                \"2013/3/19\",\n" +
                "                \"2013/3/20\",\n" +
                "                \"2013/3/21\",\n" +
                "                \"2013/3/22\",\n" +
                "                \"2013/3/25\",\n" +
                "                \"2013/3/26\",\n" +
                "                \"2013/3/27\",\n" +
                "                \"2013/3/28\",\n" +
                "                \"2013/3/29\",\n" +
                "                \"2013/4/1\",\n" +
                "                \"2013/4/2\",\n" +
                "                \"2013/4/3\",\n" +
                "                \"2013/4/8\",\n" +
                "                \"2013/4/9\",\n" +
                "                \"2013/4/10\",\n" +
                "                \"2013/4/11\",\n" +
                "                \"2013/4/12\",\n" +
                "                \"2013/4/15\",\n" +
                "                \"2013/4/16\",\n" +
                "                \"2013/4/17\",\n" +
                "                \"2013/4/18\",\n" +
                "                \"2013/4/19\",\n" +
                "                \"2013/4/22\",\n" +
                "                \"2013/4/23\",\n" +
                "                \"2013/4/24\",\n" +
                "                \"2013/4/25\",\n" +
                "                \"2013/4/26\",\n" +
                "                \"2013/5/2\",\n" +
                "                \"2013/5/3\",\n" +
                "                \"2013/5/6\",\n" +
                "                \"2013/5/7\",\n" +
                "                \"2013/5/8\",\n" +
                "                \"2013/5/9\",\n" +
                "                \"2013/5/10\",\n" +
                "                \"2013/5/13\",\n" +
                "                \"2013/5/14\",\n" +
                "                \"2013/5/15\",\n" +
                "                \"2013/5/16\",\n" +
                "                \"2013/5/17\",\n" +
                "                \"2013/5/20\",\n" +
                "                \"2013/5/21\",\n" +
                "                \"2013/5/22\",\n" +
                "                \"2013/5/23\",\n" +
                "                \"2013/5/24\",\n" +
                "                \"2013/5/27\",\n" +
                "                \"2013/5/28\",\n" +
                "                \"2013/5/29\",\n" +
                "                \"2013/5/30\",\n" +
                "                \"2013/5/31\",\n" +
                "                \"2013/6/3\",\n" +
                "                \"2013/6/4\",\n" +
                "                \"2013/6/5\",\n" +
                "                \"2013/6/6\",\n" +
                "                \"2013/6/7\",\n" +
                "                \"2013/6/13\"\n" +
                "            ],\n" +
                "            \"series\": [\n" +
                "                {\n" +
                "                    \"name\": \"成交量1\",\n" +
                "                    \"data\": [\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45,\n" +
                "                        37,\n" +
                "                        43,\n" +
                "                        15,\n" +
                "                        20,\n" +
                "                        45\n" +
                "                    ]\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"tips\": \"【开源不易、改造不易、哪(拿)来简单】uCharts将始终坚持开源，为您提供最便捷的高性能图表工具！\"\n" +
                "    }\n" +
                "}";

    }
}

